package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.UkLoginInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UkLoginInfoMapper;
import com.ruoyi.system.service.IUkLoginInfoService;

/**
 * UK登录证书Service业务层处理
 * 
 * @author ess
 * @date 2021-10-18
 */
@Service
public class UkLoginInfoServiceImpl implements IUkLoginInfoService 
{
    @Autowired
    private UkLoginInfoMapper ukLoginInfoMapper;

    /**
     * 查询UK登录证书
     * 
     * @param personId UK登录证书主键
     * @return UK登录证书
     */
    @Override
    public UkLoginInfo selectUkLoginInfoByPersonId(String personId)
    {
        return ukLoginInfoMapper.selectUkLoginInfoByPersonId(personId);
    }

    /**
     * 查询UK登录证书列表
     * 
     * @param ukLoginInfo UK登录证书
     * @return UK登录证书
     */
    @Override
    public List<UkLoginInfo> selectUkLoginInfoList(UkLoginInfo ukLoginInfo)
    {
        return ukLoginInfoMapper.selectUkLoginInfoList(ukLoginInfo);
    }

    /**
     * 新增UK登录证书
     * 
     * @param ukLoginInfo UK登录证书
     * @return 结果
     */
    @Override
    public int insertUkLoginInfo(UkLoginInfo ukLoginInfo)
    {
        return ukLoginInfoMapper.insertUkLoginInfo(ukLoginInfo);
    }

    /**
     * 修改UK登录证书
     * 
     * @param ukLoginInfo UK登录证书
     * @return 结果
     */
    @Override
    public int updateUkLoginInfo(UkLoginInfo ukLoginInfo)
    {
        return ukLoginInfoMapper.updateUkLoginInfo(ukLoginInfo);
    }

    /**
     * 批量删除UK登录证书
     * 
     * @param personIds 需要删除的UK登录证书主键
     * @return 结果
     */
    @Override
    public int deleteUkLoginInfoByPersonIds(String[] personIds)
    {
        return ukLoginInfoMapper.deleteUkLoginInfoByPersonIds(personIds);
    }

    /**
     * 删除UK登录证书信息
     * 
     * @param personId UK登录证书主键
     * @return 结果
     */
    @Override
    public int deleteUkLoginInfoByPersonId(String personId)
    {
        return ukLoginInfoMapper.deleteUkLoginInfoByPersonId(personId);
    }
}
